import { nanoid } from 'nanoid';

export const getUserTempId = () => {
  let localTempId = localStorage.getItem('userTempId');
  if (!localTempId) {
    localTempId = nanoid();
    localStorage.setItem('userTempId', localTempId);
  }
  return localTempId;
};